#-*-coding:utf-8-*-
import pymysql
import sys

import database.admin.setting as setting
class Student():
    """
    定义的学生类
    """
    def __init__(self,id):
        self.id=id
        self.name=self.get_name()
        self.connect=self.db_connect()
        self.cursor=self.connect.cursor()
        self.info=self.get_info()
        self.get_name()
        self.get_school()
    def db_connect(self):
        return pymysql.connect(**setting.config)

    def get_info(self):
        #print(self.cursor)
        pass

    def get_name(self):
        pass

    def get_school(self):
        pass

    def get_history_course(self):###历史选修课程，包括课程的学年，课程名，课程代码，学分，成绩
        pass

    def pick_course(self):###要判断是否有先修课程，以及意愿值与课程的课容量情况
        pass

    def del_course(self):##都是要传参数的
        pass

    def assess_course(self):
        pass

if __name__=='__main__':
    s=Student("2018300354")
